package com.ecactus.androidappframework.mvp2.model;

public class User {
    public boolean isValid(String username, String password) {
        if (username != null && !username.isEmpty() && password != null && !password.isEmpty()) {
            return true;
        }
        return false;
    }
    public String getUserInfo(String userName){
        if (userName != null && !userName.isEmpty()){
            return "userInfo : name = zhang san ,sex = 男,age = 28 ";
        }
        return "";
    }
}
